package com.netease.pris.activity.view;

import android.os.Handler;
import android.view.animation.Animation;
import android.view.animation.Transformation;

class bl extends Animation
{
  private boolean b = false;
  private boolean c;
  private int d = 0;
  private int e = 0;
  private int f = 0;
  private int g = 0;
  private int h = -1;

  public bl(FlingGallery paramFlingGallery)
  {
  }

  private void a()
  {
    int i;
    int j;
    if (this.g > 0)
    {
      i = FlingGallery.a(this.a, this.d);
      j = FlingGallery.c(this.a, FlingGallery.b(this.a));
    }
    for (int k = FlingGallery.b(this.a, this.d); ; k = FlingGallery.a(this.a, this.d))
    {
      FlingGallery.f(this.a)[this.d].c(this.d);
      if (FlingGallery.f(this.a)[i].b() != j)
        FlingGallery.f(this.a)[i].e(j);
      if (i != k)
        FlingGallery.f(this.a)[k].c(this.d);
      FlingGallery.f(this.a)[0].a(this.f, 0, this.d);
      FlingGallery.f(this.a)[1].a(this.f, 0, this.d);
      FlingGallery.f(this.a)[2].a(this.f, 0, this.d);
      FlingGallery.f(this.a)[0].d(this.d);
      FlingGallery.f(this.a)[1].d(this.d);
      FlingGallery.f(this.a)[2].d(this.d);
      this.b = false;
      if (FlingGallery.p(this.a) != null)
        FlingGallery.p(this.a).a(FlingGallery.b(this.a));
      if (FlingGallery.g(this.a) != null)
        FlingGallery.g(this.a).sendEmptyMessage(100);
      return;
      i = FlingGallery.b(this.a, this.d);
      j = FlingGallery.d(this.a, FlingGallery.b(this.a));
    }
  }

  public void a(int paramInt)
  {
    int i = -1;
    FlingGallery.a(this.a, true);
    this.c = false;
    if (this.d != paramInt)
      if (this.b == true)
        if (paramInt != FlingGallery.b(this.a, this.d))
          break label219;
    label219: for (int j = 1; ; j = i)
    {
      if (this.g < 0)
        i = 1;
      if (i == j)
      {
        FlingGallery.f(this.a)[0].a(this.f, 0, this.d);
        FlingGallery.f(this.a)[1].a(this.f, 0, this.d);
        FlingGallery.f(this.a)[2].a(this.f, 0, this.d);
      }
      this.d = paramInt;
      this.c = true;
      this.e = FlingGallery.f(this.a)[this.d].c();
      this.f = FlingGallery.a(this.a, this.d, this.d);
      this.g = (this.f - this.e);
      setDuration(FlingGallery.n(this.a));
      setInterpolator(FlingGallery.o(this.a));
      this.b = true;
      return;
    }
  }

  protected void applyTransformation(float paramFloat, Transformation paramTransformation)
  {
    if (paramFloat > 1.0F)
      paramFloat = 1.0F;
    int i = this.e + (int)(paramFloat * this.g);
    this.h = i;
    for (int j = 0; j < 3; j++)
    {
      if (((this.g <= 0) || (j == FlingGallery.a(this.a, this.d))) && ((this.g >= 0) || (j == FlingGallery.b(this.a, this.d))))
        continue;
      FlingGallery.f(this.a)[j].a(i, 0, this.d);
    }
  }

  public boolean getTransformation(long paramLong, Transformation paramTransformation)
  {
    int i = 0;
    if (!super.getTransformation(paramLong, paramTransformation))
      a();
    while (true)
    {
      return i;
      if ((FlingGallery.q(this.a)) || (FlingGallery.r(this.a)) || (this.h == 0))
      {
        a();
        continue;
      }
      i = 1;
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.activity.view.bl
 * JD-Core Version:    0.6.0
 */